home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / rocketcar2.swf / scripts / frame_14 / PlaceObject3_735_377 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2008-09-24  |  1.2 KB  |  55 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.car.dead)
  3.    {
  4.       _root.f1._visible = false;
  5.       _root.f2._visible = false;
  6.       _root.f3._visible = false;
  7.       _root.steamSide.stop();
  8.    }
  9.    if(_root.car._x < 20)
  10.    {
  11.       _root.car._x = 20;
  12.       _root.car.xSpeed = _root.car.xSpeed + 1;
  13.    }
  14.    if(_root.car._x > 670)
  15.    {
  16.       _root.car._x = 670;
  17.       _root.car.xSpeed--;
  18.    }
  19.    if(_root.car._y <= 30)
  20.    {
  21.       if(_root.fade._currentframe == 1)
  22.       {
  23.          if(_root.gravityType == "reverse")
  24.          {
  25.             _root.steamSide.stop();
  26.             _root.steam.stop();
  27.             _root.steamSideB.stop();
  28.             _root.resetLvl();
  29.             _root.reset = true;
  30.          }
  31.       }
  32.       if(_root.gravityType !== "reverse")
  33.       {
  34.          _root.car._y = 30;
  35.          _root.car.ySpeed = _root.car.ySpeed + 1;
  36.       }
  37.    }
  38.    if(_root.car._y > 520)
  39.    {
  40.       if(_root.fade._currentframe == 1)
  41.       {
  42.          if(_root.gravityType == "normal")
  43.          {
  44.             _root.resetLvl();
  45.             _root.reset = true;
  46.             _root.steamSide.stop();
  47.             _root.steam.stop();
  48.             _root.steamSideB.stop();
  49.          }
  50.       }
  51.    }
  52.    _root.smoke();
  53.    _root.m = _root.fade._currentframe;
  54. }
  55.